﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改事项</title>
<style>
body {
	background: -webkit-linear-gradient(left, #25c481, #25b7c4);
	background: linear-gradient(to right, #25c481, #25b7c4);
	font-family: 'Roboto', sans-serif;
}

#main {
	margin: 50px auto;
	width: 40% ;
	border-radius:10px;
	background-color: rgba(255, 64, 0, .1);
	padding:10px;
	font-size:12px;
}

table {
	width: 100%;
	border-spacing: 10px 30px;
}

th {
	border-bottom: 2px solid #ccc;
}

td {
	text-align: left;
}

tr td:first-child {
	text-align: right;
	background-color:rgba(0, 0, 255, .2);
	font-size:16px;
	font-weight:700;
}

td:last-child {
	background-color:rgba(0,0,0	,.5);
}

tr:last-child td{
	background:none;
}

h1 {
	text-align: center;
	color: rgba(0, 0, 255, .5);
	background-color:rgba(255,64,0,.5);
}

input[type=text] {
	border:none;
	border-bottom: 1px solid #00f;
	outline:none;
	background:none;
}

textarea{
	border:none;
	border-bottom: 1px solid #00f;
	outline:none;
	background:none;
}

.btn {
	text-decoration: none;
	color: #fff;
	background-color: rgba(0, 0, 255, .2);
	padding: 5px 10px;
	border:none;
	border-radius: 5px;
	margin-left: 32px;
}

.btn:hover {
	background-color: rgba(0, 0, 255, .5);
	box-shadow: 0 0 5px 0 rgb(0, 0, 0);
}
</style>
<script>
    
</script>
</head>
<body>
     <div id="main">
      <h1>修改错误记录</h1>
      <form action="edit" method="post" enctype="multipart/form-data">
		   <table>
		     <tbody>
		     	<tr style="display:none;">
   			   		<td>wrong_id</td>
			   		<td><input name="wrong_id" type="text" value="${wrong_detail.getId()}"></td>
			  	</tr>
			  <tr>
   			   <td>标题</td>
			   <td><input name="title" type="text" value="${wrong_detail.getTitle()}"></td>
			  </tr>
			  <tr>
			    <td>错误描述</td>
				<td>
				   <textarea name="answer" cols="50" rows="5">${wrong_detail.getAnswer()}</textarea>
				</td>
			  </tr>
			  <tr>
			    <td>错误图片</td>
				<td>
				   <img src="/imagesdir/${wrong_detail.getImg()}" width="300px" height="200px"/><br/>
				   修改图片:<input type="file" name="errimg"/>
				</td>
			  </tr>
			  <tr>
   			   <td>创建日期</td>
			   <td><input name="createtime" type="text" value="${wrong_detail.getCreatetime()}"></td>
			  </tr>
			  <tr>
			    <td>解决方式</td>
				<td>
				   <textarea name="dealtype" cols="50" rows="10">${wrong_detail.getDealtype()}</textarea>
				</td>
			  </tr>
			  <tr>
   			   <td>解决时间</td>
			   <td><input name="dealtime" type="text" value="${wrong_detail.getDealtime()}"></td>
			  </tr>
			  <tr>
   			   <td>检索标签</td>
			   <td><input name="tip" type="text" value="${wrong_detail.getTip()}"></td>
			  </tr>
			   <tr>
			    <td><input type="submit" value="修改" class="btn"></td>
				<td><input type="reset" value="重置" class="btn"></td>
			   </tr>
			</tbody>
		   </table>
      </form>
      </div>

</body></html>